﻿using DAL.AntiFake;
using Model;
using Model.AntiFake;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using Common;
namespace BLL.AntiFake
{
   public class QueryCodeLogBLL
    {
       QueryCodeLogDAL dal = new QueryCodeLogDAL();
       /// <summary>
       /// 表是否存在
       /// </summary>
       /// <param name="fw_code"></param>
       /// <returns></returns>
       //public TableModel TabIsExist(string fw_code)
       //{
       //    return dal.TabIsExist(fw_code);
       //}
       public bool TabIsExist(string fw_code, out string TableName)
       {
           return dal.TabIsExist(fw_code, out TableName);
       }
       /// <summary>
       /// 根据防伪码获取对应的防伪信息
       /// </summary>
       /// <returns></returns>
       public AntiFake_DigitcodeModel GetModelByFw_Code(string fw_code) {
           return dal.GetModelByFw_Code(fw_code);

       }
       public ResultEntity UpdateDigitcode(AntiFake_DigitcodeModel model, string tableName)
       {
           return dal.UpdateDigitcode(model, tableName);
       }
       public ResultEntity AddQueryCodeLog(QueryCodeLogModel model) {
           return dal.AddQueryCodeLog(model);
       }
       public List<QueryCodeLogModel> GetListByCode(string code)
       {
           return dal.GetListByCode(code);
       }
       /// <summary>
       /// 查询分页列表
       /// </summary>
       /// <param name="strWhere"></param>
       /// <returns></returns>
       public List<QueryCodeLogModel> GetList(string strWhere)
       {
           return dal.GetList(strWhere);
       }
    }
}
